import request from '../request'

// 获取页面左侧病区列表
export function getListWard(params) {
  return request({
    url: '/patient-hos-diet-log-latest/listWard',
    method: 'POST',
    data: params
  })
}

// 获取饮食日志
export function pageList(params) {
  return request({
    url: '/patient-hos-diet-log-latest/pageList',
    method: 'POST',
    data: params
  })
}

// 新建或编辑
export function saveOrUpdate(params) {
  return request({
    url: '/patient-hos-diet-log-latest/saveOrUpdate',
    method: 'POST',
    data: params
  })
}

// 导出
export function exPortList(params) {
  return request({
    url: '/patient-hos-diet-log-latest/exPortList',
    method: 'POST',
    data: params,
    responseType: 'blob'
  })
}

// 提交
export function submitPatientHosDietLog(params) {
  return request({
    url: '/patient-hos-diet-log-latest/submitPatientHosDietLog',
    method: 'POST',
    data: params
  })
}

// 删除
export function deleteById(params) {
  return request({
    url: '/patient-hos-diet-log-latest/delete',
    method: 'DELETE',
    params
  })
}
